<@t.header>
<link rel="stylesheet" href="${request.contextPath}/app/bid/css/bid-view.css">
</@t.header> <@t.body>
<#if !data??>
<div class="row" style="margin-top: 50px;">
	<div class="col-md-8 col-md-offset-2">
		<div class="alert alert-danger" role="alert">
			<strong>数据错误！</strong>
			无效的招标信息或者系统异常！
		</div>
	</div>
</div>
<#else>
<#setting url_escaping_charset='utf-8'>
<div class="navbar navbar-default navbar-fixed-top padding-0 margin-0">
	<div class="container-fluid">
		<div class="navbar-header">
			<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#op-btns" aria-expanded="false">
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
			</button>
			<span class="navbar-brand">
				<i class="icon-paste icon-large"></i>
				投标管理
			</span>
		</div>

		<div class="navbar-collapse" id="op-btns">
			<ul class="nav navbar-nav">
				<#if roles.canSendToHetongZhuanze>
				<li class="send-with-user" data-id="${data.id}" data-flowtype="flow_bid" data-rolecode="d" data-status="FS1001_BID_CONTRACT_CREATED">
					<a href="javascript:void(0);">
						<div class="text-center op-btn-icon">
							<i class="icon-signout icon-large"></i>
						</div>
						完成并送交合同专责
					</a>
				</li>
				</#if>

				<#if roles.canDoBidResult>
				<li class="win-bid" data-id="${data.id}" data-qt="${data.enumQuotationType}">
					<a href="javascript:void(0);">
						<div class="text-center op-btn-icon">
							<i class="icon-ok icon-large"></i>
						</div>
						中标
					</a>
				</li>
				<li class="lose-bid" data-id="${data.id}" data-qt="${data.enumQuotationType}">
					<a href="javascript:void(0);">
						<div class="text-center op-btn-icon">
							<i class="icon-ban-circle icon-large"></i>
						</div>
						未中标
					</a>
				</li>
				<li class="re-bid" data-id="${data.id}" data-qt="${data.enumQuotationType}">
					<a href="javascript:void(0);">
						<div class="text-center op-btn-icon">
							<i class="icon-refresh icon-large"></i>
						</div>
						流标重投
					</a>
				</li>
				</#if>

				<#if roles.canGetBackToubiaoBaozheng>
				<li class="getback-tbbzj" data-id="${data.id}" data-moneyid="${data.tbbzj.id}">
					<a href="javascript:void(0);">
						<div class="text-center op-btn-icon">
							<i class="icon-retweet icon-large"></i>
						</div>
						回收投标保证金
					</a>
				</li>
				</#if>

				<#if roles.canAddPayout>
				<li class="pay-out" data-id="${data.id}">
					<a href="javascript:void(0);">
						<div class="text-center op-btn-icon">
							<i class="icon-money icon-large"></i>
						</div>
						投标费用支出
					</a>
				</li>
				</#if>

				<#if roles.canUploadDoFile>
				<li class="upload-bid-file" data-id="${data.id}">
					<a href="javascript:void(0);">
						<div class="text-center op-btn-icon">
							<i class="icon-upload icon-large"></i>
						</div>
						上传投标文件
					</a>
				</li>
				</#if>

				<#if roles.canEditForm>
				<li class="edit-form" data-id="${data.id}">
					<a href="javascript:void(0);">
						<div class="text-center op-btn-icon">
							<i class="icon-edit icon-large"></i>
						</div>
						编辑表单
					</a>
				</li>
				</#if>

				<!-- -->
				<#if roles.canSignContract>
				<li class="sign-contract" data-bid-id="${data.id}">
					<a href="javascript:void(0);">
						<div class="text-center op-btn-icon">
							<i class="icon-edit icon-large"></i>
						</div>
						签订合同
					</a>
				</li>
				</#if>
			</ul>
		</div>
	</div>
</div>

<div class="container" style="padding-top: 60px;">
	<div role="tabpanel" class="suredy-tabs">
		<ul class="nav nav-tabs" role="tablist">
			<li id="tab-head1" role="presentation" class="active">
				<a href="#tab1" aria-controls="tab1" role="tab" data-toggle="tab">基本信息</a>
			</li>
			<#if roles.gongsiLeader || roles.shichangPeople>
			<li id="tab-head2" role="presentation" class="">
				<a href="#tab2" aria-controls="tab2" role="tab" data-toggle="tab">费用支出</a>
			</li>
			</#if>
		</ul>

		<div class="tab-content">
			<div role="tabpanel" class="tab-pane fade in active" id="tab1">
				<#include "app/bid/bid-view-info.ftl">
				<hr>
			</div>
			<#if roles.gongsiLeader || roles.shichangPeople>
			<div role="tabpanel" class="tab-pane fade bid-payout" id="tab2">
				<#include "app/bid/bid-view-payout.ftl">
				<hr>
			</div>
			</#if>
		</div>
	</div>
</div>
</#if>
</@t.body> <@t.foot>
<script src="${request.contextPath}/core/js/jquery.form.js"></script>
<script src="${request.contextPath}/js/suredy-modal.js"></script>
<script src="${request.contextPath}/js/suredy-datetimepicker.js"></script>
<script src="${request.contextPath}/app/js/file.js"></script>
<script src="${request.contextPath}/app/flow/js/flow.js"></script>
<script src="${request.contextPath}/app/js/form-checker.js"></script>
<script src="${request.contextPath}/app/bid/js/bid-view.js"></script>
</@t.foot>
